package com.itheima.demo.demo12;

public class LamaRunable {
    public static void main(String[] args) {
        method(()->{
            System.out.println("接口的方法执行");
        });
    }

    private static void method(Runnable r) {
        new Thread(r).start();

    }
}
